package com.wanlian.service;

import com.wanlian.common.PageCondition;
import com.wanlian.entity.BlackList;
import com.wanlian.entity.WordBook;
import com.wanlian.model.ResultModel;

import java.util.List;

public interface WordBookServices {
	/**
	 * 添加
	 *
	 * @param wordBook
	 * @return
	 */
	ResultModel doAdd(WordBook wordBook, int userId);

	/**
	 * 禁用或者启用
	 *
	 * @param wordBook
	 * @return
	 */
	ResultModel doEnable(WordBook wordBook, int userId);

	WordBook queryByVal(String wbval2);


	List<WordBook> queryBooksByVal(String wbval2);

	/**
	 * 遍历字典
	 *
	 * @param pageCondition
	 * @return
	 */
	ResultModel queryByCondition(PageCondition pageCondition);

	ResultModel queryById(int id);

	/**
	 * 修改
	 * @param wordBook
	 * @return
	 */
	ResultModel doEdit(WordBook wordBook, int userId);

	ResultModel queryChannel();

}
